package com.ruben.state;

/**
 * 实例
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/10/17 18:25
 */
public class Client {
    public static void main(String[] args) {
        State initialState = new ConcreteState();
        Context context = new Context(initialState);
        context.doThis();
        context.doThis();
        context.doThat();
        context.doThat();
        System.out.println("===手动变更状态===");
        context.changeState(new OtherConcreteState());
        context.doThis();
    }
}
